package com.example.development.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.development.business.entity.MysqlRowLock;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * @author: vince_zww
 * @date: 2020/8/21 23:53
 * @desceription:
 */
@Component
public interface MysqlRowLockMapper extends BaseMapper<MysqlRowLock> {

    @Select("SELECT SLEEP(10)")
    void sleep();

    @Select("SELECT id,title,content,type,create_time,update_time,delete_flag FROM tab_mysql_row_lock WHERE (id = 4)")
    MysqlRowLock select03();
}
